400 |
How can I display the column using currency format and enlarge the font for certain values
|
399 |
How can I get the number of occurrences of a specified string in the cell
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oColumn LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add("") oColumn := oComboBox:Columns():Add("occurrences") oColumn:ComputedField := "lower(%0) count 'o'" oColumn:FormatColumn := "'contains ' + value + ' of \'o\' chars'" oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1 oooof the root") oItems:InsertItem(h,,"Child 2") oItems:InsertItem(h,,"Child 3") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
398 |
How can I display dates in my format
|
397 |
How can I display dates in short format
|
396 |
How can I display dates in long format
|
395 |
How can I display only the right part of the cell
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oColumn LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add("") oColumn := oComboBox:Columns():Add("Right") oColumn:ComputedField := "%0 right 2" oColumn:FormatColumn := "'" + CHR(34) + "' + value + '" + CHR(34) + "'" oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:InsertItem(h,,"SChild 3") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
394 |
How can I display only the left part of the cell
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add("") oComboBox:Columns():Add("Left"):ComputedField := "%0 left 2" oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:InsertItem(h,,"SChild 3") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
393 |
How can I display true or false instead 0 and -1
|
392 |
How can I display icons or images instead numbers
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oColumn LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=") oColumn := oComboBox:Columns():Add("Icons") oColumn:SetProperty("Def",17/*exCellCaptionFormat*/,1) oColumn:FormatColumn := "'The cell displays the icon <img>'+value+'</img> instead ' + value" oItems := oComboBox:Items() oItems:AddItem(1) oItems:AddItem(2) oItems:AddItem(3) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
391 |
How can I display the column using currency
|
390 |
How can I display the currency only for not empty cells
|
389 |
Is there a function to display the number of days between two date including the number of hours
|
388 |
Is there a function to display the number of days between two date including the number of hours
|
387 |
How can I display the number of days between two dates
|
386 |
How can I get second part of the date
|
385 |
How can I get minute part of the date
|
384 |
How can I check the hour part only so I know it was afternoon
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:ConditionalFormats():Add("hour(%0)>=12"):Bold := .T. oComboBox:Columns():Add("Date") oComboBox:Columns():Add("Hour"):ComputedField := "hour(%0)" oItems := oComboBox:Items() oItems:AddItem("01/11/2001 10:00:00") oItems:AddItem("02/22/2002 11:00:00") oItems:AddItem("03/13/2003 12:00:00") oItems:AddItem("04/14/2004 13:00:00") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
383 |
What about a function to get the day in the week, or days since Sunday
|
382 |
Is there any function to get the day of the year or number of days since January 1st
|
381 |
How can I display only the day of the date
|
380 |
How can I display only the month of the date
|
379 |
How can I get only the year part from a date expression
|
378 |
Can I convert the expression to date
|
377 |
Can I convert the expression to a number, double or float
|
376 |
How can I display dates in long format
|
375 |
How can I display dates in short format
|
374 |
How can I display the time only of a date expression
|
373 |
Is there any function to display currencies, or money formatted as in the control panel
|
372 |
How can I convert the expression to a string so I can look into the date string expression for month's name
|
371 |
Can I display the absolute value or positive part of the number
|
370 |
Is there any function to get largest number with no fraction part that is not greater than the value
|
369 |
Is there any function to round the values base on the .5 value
|
368 |
How can I get or display the integer part of the cell
|
367 |
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add(""):ComputedField := "proper(%0)" oItems := oComboBox:Items() h := oItems:AddItem("root") oItems:InsertItem(h,,"child child") oItems:InsertItem(h,,"child child") oItems:InsertItem(h,,"child child") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
366 |
Is there any option to display cells in uppercase
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add(""):ComputedField := "upper(%0)" oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:InsertItem(h,,"Chld 3") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
365 |
Is there any option to display cells in lowercase
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add(""):ComputedField := "lower(%0)" oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:InsertItem(h,,"Chld 3") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
364 |
How can I mark the cells that has a specified type, ie strings only
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:ConditionalFormats():Add("type(%0) = 8"):SetProperty("ForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oComboBox:Columns():Add("") oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,2) oItems:InsertItem(h,,"Chld 3") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
363 |
How can I bold the items that contains data or those who displays empty strings
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h,hC oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:ConditionalFormats():Add("not len(%1)=0"):Bold := .T. oComboBox:Columns():Add("C1") oComboBox:Columns():Add("C2") oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") hC := oItems:InsertItem(h,,"Child 2") oItems:SetProperty("CellCaption",hC,1,"1") oItems:InsertItem(h,,"Child 3") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
362 |
Can I change the background color for items or cells that contains a specified string
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:ConditionalFormats():Add("%0 contains 'hi'"):SetProperty("BackColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oComboBox:Columns():Add("") oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:InsertItem(h,,"Chld 3") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
361 |
Is there any option to change the fore color for cells or items that ends with a specified string
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:ConditionalFormats():Add("%0 endwith '22'"):SetProperty("ForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oComboBox:Columns():Add("") oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 1.22") oItems:InsertItem(h,,"Child 2.22") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
360 |
How can I highlight the cells or items that starts with a specified string
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:ConditionalFormats():Add("%0 startwith 'C'"):Underline := .T. oComboBox:Columns():Add("") oItems := oComboBox:Items() h := oItems:AddItem("Root") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:InsertItem(h,,"SChild 3") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
359 |
How can I change the background color or the visual appearance using ebn for a particular column
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oColumns oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oColumns := oComboBox:Columns() oColumns:Add("Column 1") oColumns:Add("Column 2"):SetProperty("Def",7/*exHeaderBackColor*/,16777216) oColumns:Add("Column 3"):SetProperty("Def",7/*exHeaderBackColor*/,16777471) oColumns:Add("Column 4") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
358 |
How can I change the background color for a particular column
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oColumns oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oColumns := oComboBox:Columns() oColumns:Add("Column 1") oColumns:Add("Column 2"):SetProperty("Def",7/*exHeaderBackColor*/,8439039) oColumns:Add("Column 3") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
357 |
Does your control support prompt feature
|
356 |
How can I display the column's header using multiple lines
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:HeaderHeight := 128 oComboBox:HeaderSingleLine := .F. oComboBox:Columns():Add("This is just a column that should break the header."):Width := 32 oComboBox:Columns():Add("This is just another column that should break the header.") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
355 |
How can I sort the value gets listed in the drop down filter window
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oColumn,oColumn1 LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:LinesAtRoot := -1/*exLinesAtRoot*/ oComboBox:MarkSearchColumn := .F. oComboBox:SetProperty("Description",0/*exFilterBarAll*/,"") oComboBox:SetProperty("Description",1/*exFilterBarBlanks*/,"") oComboBox:SetProperty("Description",2/*exFilterBarNonBlanks*/,"") oColumn := oComboBox:Columns():Add("P1") oColumn:DisplayFilterButton := .T. oColumn:DisplayFilterPattern := .F. oColumn:FilterList := 16/*exSortItemsDesc*/ oColumn1 := oComboBox:Columns():Add("P2") oColumn1:DisplayFilterButton := .T. oColumn1:DisplayFilterPattern := .F. oColumn1:FilterList := 32/*exSortItemsAsc*/ oItems := oComboBox:Items() h := oItems:AddItem("Z3") oItems:SetProperty("CellCaption",h,1,"C") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Z1"),1,"B") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Z2"),1,"A") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
354 |
Is there any property to disable the popup/context menu being shown when the user does a right click in the control's label area
|
353 |
How can I align the text/caption on the scroll bar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:SetProperty("ScrollPartCaption",1/*exHScroll*/,512/*exLowerBackPart*/,"left") oComboBox:SetProperty("ScrollPartCaptionAlignment",1/*exHScroll*/,512/*exLowerBackPart*/,0/*LeftAlignment*/) oComboBox:SetProperty("ScrollPartCaption",1/*exHScroll*/,128/*exUpperBackPart*/,"right") oComboBox:SetProperty("ScrollPartCaptionAlignment",1/*exHScroll*/,128/*exUpperBackPart*/,2/*RightAlignment*/) oComboBox:ColumnAutoResize := .F. oComboBox:Columns():Add(Transform(1,"")) oComboBox:Columns():Add(Transform(2,"")) oComboBox:Columns():Add(Transform(3,"")) oComboBox:Columns():Add(Transform(4,"")) oComboBox:Columns():Add(Transform(5,"")) oComboBox:Columns():Add(Transform(6,"")) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
352 |
Does you control support RTL languages or if there is a property RightToLeft
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oColumn LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:RightToLeft := .T. oComboBox:ItemsAllowSizing := -1/*exResizeItem*/ oComboBox:DrawGridLines := 1/*exHLines*/ oComboBox:LinesAtRoot := -1/*exLinesAtRoot*/ oComboBox:ScrollBySingleLine := .T. oComboBox:DefaultItemHeight := 64 oColumn := oComboBox:Columns():Add("Column") oColumn:Alignment := 2/*RightAlignment*/ oColumn:HeaderAlignment := 2/*RightAlignment*/ oColumn:EditAlignment := 2/*RightAlignment*/ oItems := oComboBox:Items() oItems:AddItem("Item 1") oItems:SetProperty("ItemHeight",oItems:InsertItem(oItems:AddItem("Parent"),,"Item 2"),48) oItems:AddItem("Item 3") oItems:SetProperty("ExpandItem",oItems:ItemByIndex(1),.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
351 |
How do I enable resizing all the items at runtime
|
350 |
How can I remove the filter
|
349 |
How do I display the icons being selected in the control's label
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=") oComboBox:Columns():Add("Column") oItems := oComboBox:Items() oItems:SetProperty("CellImage",oItems:AddItem("Image 1"),0,1) oItems:SetProperty("CellImage",oItems:AddItem("Image 2"),0,2) oItems:SetProperty("CellImage",oItems:AddItem("Image 3"),0,3) oComboBox:SetProperty("AssignEditImageOnSelect",0,.T.) oComboBox:Value := "Image 2" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
348 |
How do I select a value
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:IntegralHeight := .T. oComboBox:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oComboBox:TreeColumnIndex := 1 oComboBox:Columns():Add("Column 1") oComboBox:Columns():Add("Column 2") oItems := oComboBox:Items() h := oItems:AddItem("Root 1.1") oItems:SetProperty("CellCaption",h,1,"Root 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 2.1"),1,"Child 2.2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2.1") oItems:SetProperty("CellCaption",h,1,"Root 2.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oComboBox:Value := "Root 1.1" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
347 |
How do I select a value
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:IntegralHeight := .T. oComboBox:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oComboBox:TreeColumnIndex := 1 oComboBox:Columns():Add("Column 1") oComboBox:Columns():Add("Column 2") oItems := oComboBox:Items() h := oItems:AddItem("Root 1.1") oItems:SetProperty("CellCaption",h,1,"Root 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 2.1"),1,"Child 2.2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2.1") oItems:SetProperty("CellCaption",h,1,"Root 2.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oComboBox:SetProperty("Select",1,"Root 1.2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
346 |
How do change the visual appearance for the drop down border, using EBN
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oComboBox:DropDownBorder := 16777216/*0x1000000+*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
345 |
How do I remove the drop down's border
|
344 |
How can I change the foreground color for edit controls
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:SetProperty("ForeColorEdit",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oComboBox:IntegralHeight := .T. oComboBox:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oComboBox:TreeColumnIndex := 1 oComboBox:Columns():Add("Column 1") oComboBox:Columns():Add("Column 2") oItems := oComboBox:Items() h := oItems:AddItem("Root 1.1") oItems:SetProperty("CellCaption",h,1,"Root 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 2.1"),1,"Child 2.2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2.1") oItems:SetProperty("CellCaption",h,1,"Root 2.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oComboBox:SetProperty("Select",0,"Root 1.1") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
343 |
How can I change the background color for edit controls
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:SetProperty("BackColorEdit",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oComboBox:IntegralHeight := .T. oComboBox:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oComboBox:TreeColumnIndex := 1 oComboBox:Columns():Add("Column 1") oComboBox:Columns():Add("Column 2") oItems := oComboBox:Items() h := oItems:AddItem("Root 1.1") oItems:SetProperty("CellCaption",h,1,"Root 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 2.1"),1,"Child 2.2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2.1") oItems:SetProperty("CellCaption",h,1,"Root 2.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oComboBox:SetProperty("Select",0,"Root 1.1") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
342 |
How can I hide the drop down buttons when the control loses the focus
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:HideDropDownButton := .T. oComboBox:IntegralHeight := .T. oComboBox:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oComboBox:TreeColumnIndex := 1 oComboBox:Columns():Add("Column 1") oComboBox:Columns():Add("Column 2") oItems := oComboBox:Items() h := oItems:AddItem("Root 1.1") oItems:SetProperty("CellCaption",h,1,"Root 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 2.1"),1,"Child 2.2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2.1") oItems:SetProperty("CellCaption",h,1,"Root 2.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
341 |
How can I ensure that the drop down portions doesn't show partial items
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:IntegralHeight := .T. oComboBox:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oComboBox:TreeColumnIndex := 1 oComboBox:Columns():Add("Column 1") oComboBox:Columns():Add("Column 2") oItems := oComboBox:Items() h := oItems:AddItem("Root 1.1") oItems:SetProperty("CellCaption",h,1,"Root 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 2.1"),1,"Child 2.2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2.1") oItems:SetProperty("CellCaption",h,1,"Root 2.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
340 |
How can I close the drop down window when user double clicks it
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:CloseOnDblClk := .T. oComboBox:LinesAtRoot := 1/*exGroupLinesAtRoot*/ oComboBox:TreeColumnIndex := 1 oComboBox:Columns():Add("Column 1") oComboBox:Columns():Add("Column 2") oItems := oComboBox:Items() h := oItems:AddItem("Root 1.1") oItems:SetProperty("CellCaption",h,1,"Root 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 2.1"),1,"Child 2.2") oItems:SetProperty("ExpandItem",h,.T.) h := oItems:AddItem("Root 2.1") oItems:SetProperty("CellCaption",h,1,"Root 2.2") oItems:SetProperty("CellCaption",oItems:InsertItem(h,,"Child 1.1"),1,"Child 1.2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
339 |
How do I get the handle of the drop down window
|
338 |
How do I specify the height of the control's label
|
337 |
The control selects the portion of text that doesn't match with the selected item. How can I avoid that
|
336 |
How can I show the drop down window as soon as user starts typing in the control
|
335 |
How do I change the text in the edit or label area
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add("Column") oItems := oComboBox:Items() oItems:AddItem("Item 3") oItems:AddItem("Item 1") oItems:AddItem("Item 2") oComboBox:SetProperty("EditText",0,"Test") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
334 |
How do I lock or make read-only the control
|
333 |
How do I let user to resize only the height of the drop down window, at runtime
|
332 |
How do I let user to resize only the width of the drop down window, at runtime
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:AllowSizeGrip := .T. oComboBox:AllowVResize := .F. oComboBox:Columns():Add("Column") oItems := oComboBox:Items() oItems:AddItem("Item 3") oItems:AddItem("Item 1") oItems:AddItem("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
331 |
How do I let user to resize the drop down window, at runtime
|
330 |
How do I specify the height of the drop down window
|
329 |
How do I specify the minimum height of the drop down window
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:MinHeightList := 100 oComboBox:AllowSizeGrip := .T. oComboBox:Columns():Add("Column") oItems := oComboBox:Items() oItems:AddItem("Item 3") oItems:AddItem("Item 1") oItems:AddItem("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
328 |
How do I specify the width of the drop down window
|
327 |
How do I specify the minimum width of the drop down window
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:MinWidthList := 100 oComboBox:AllowSizeGrip := .T. oComboBox:Columns():Add("Column") oItems := oComboBox:Items() oItems:AddItem("Item 3") oItems:AddItem("Item 1") oItems:AddItem("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
326 |
I have multiple columns, how can I display a single edit in the control's label
|
325 |
How do I turn off the auto complete feature
|
324 |
The control supports three styles: Simple, DropDown and DropDownList. How can I change the style
|
323 |
Is there any option to align the header to the left and the data to the right
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oColumn LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add("Left"):Alignment := 0/*LeftAlignment*/ oColumn := oComboBox:Columns():Add("Right") oColumn:Alignment := 2/*RightAlignment*/ oColumn:HeaderAlignment := 2/*RightAlignment*/ oColumn:EditAlignment := 2/*RightAlignment*/ oItems := oComboBox:Items() oItems:SetProperty("CellCaption",oItems:AddItem("left"),1,"right") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
322 |
How do I change the control's border, using your EBN files
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oComboBox:Appearance := 16777216/*0x1000000+*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
321 |
Can I change the default border of the tooltip, using your EBN files
|
320 |
Can I change the background color for the tooltip
|
319 |
Does the tooltip support HTML format
|
318 |
Can I change the forecolor for the tooltip
|
317 |
Can I change the foreground color for the tooltip
|
316 |
How can I merge cells
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:DrawGridLines := -1/*exAllLines*/ oComboBox:MarkSearchColumn := .F. oComboBox:Columns():Add("C1") oComboBox:Columns():Add("C2") oComboBox:Columns():Add("C3") oItems := oComboBox:Items() h := oItems:AddItem("this cell merges the first two columns") oItems:SetProperty("CellMerge",h,0,1) h := oItems:AddItem() oItems:SetProperty("CellCaption",h,1,"this cell merges the last two columns") oItems:SetProperty("CellMerge",h,1,2) h := oItems:AddItem("this cell merges the all three columns") oItems:SetProperty("CellMerge",h,0,1) oItems:SetProperty("CellMerge",h,0,2) h := oItems:AddItem("this draws a divider item") oItems:SetProperty("ItemDivider",h,0) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
315 |
How can I merge cells
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:MarkSearchColumn := .F. oComboBox:TreeColumnIndex := -1 oComboBox:Columns():Add("C1") oComboBox:Columns():Add("C2") oItems := oComboBox:Items() h := oItems:AddItem("Cell 1") oItems:SetProperty("CellCaption",h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.") oItems:SetProperty("CellSingleLine",h,1,0/*exCaptionWordWrap*/) h := oItems:AddItem("This is bit of text merges all cells in the item") oItems:SetProperty("ItemDivider",h,0) oItems:SetProperty("CellHAlignment",h,0,1/*CenterAlignment*/) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
314 |
How can I change the color for separator / dividers items
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:MarkSearchColumn := .F. oComboBox:TreeColumnIndex := -1 oComboBox:ScrollBySingleLine := .F. oComboBox:Columns():Add("C1") oComboBox:Columns():Add("C2") oItems := oComboBox:Items() h := oItems:AddItem("Cell 1") oItems:SetProperty("CellCaption",h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.") oItems:SetProperty("CellSingleLine",h,1,0/*exCaptionWordWrap*/) h := oItems:AddItem() oItems:SetProperty("ItemDivider",h,0) oItems:SetProperty("ItemDividerLine",h,4/*DoubleDotLine*/) oItems:SetProperty("ItemDividerLineAlignment",h,1/*DividerCenter*/) oItems:SetProperty("ItemHeight",h,6) oItems:SetProperty("SelectableItem",h,.F.) h := oItems:AddItem("Cell 2") oItems:SetProperty("CellCaption",h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.") oItems:SetProperty("CellSingleLine",h,1,0/*exCaptionWordWrap*/) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
313 |
How can I add separator - dividers items
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:MarkSearchColumn := .F. oComboBox:TreeColumnIndex := -1 oComboBox:ScrollBySingleLine := .F. oComboBox:Columns():Add("C1") oComboBox:Columns():Add("C2") oItems := oComboBox:Items() h := oItems:AddItem("Cell 1") oItems:SetProperty("CellCaption",h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.") oItems:SetProperty("CellSingleLine",h,1,0/*exCaptionWordWrap*/) h := oItems:AddItem() oItems:SetProperty("ItemDivider",h,0) oItems:SetProperty("ItemDividerLine",h,4/*DoubleDotLine*/) oItems:SetProperty("ItemDividerLineAlignment",h,1/*DividerCenter*/) oItems:SetProperty("ItemHeight",h,6) oItems:SetProperty("SelectableItem",h,.F.) h := oItems:AddItem("Cell 2") oItems:SetProperty("CellCaption",h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.") oItems:SetProperty("CellSingleLine",h,1,0/*exCaptionWordWrap*/) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
312 |
Can I change the style of the line being displayed by a divider item
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:MarkSearchColumn := .F. oComboBox:TreeColumnIndex := -1 oComboBox:ScrollBySingleLine := .F. oComboBox:Columns():Add("C1") oComboBox:Columns():Add("C2") oItems := oComboBox:Items() h := oItems:AddItem("Cell 1") oItems:SetProperty("CellCaption",h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.") oItems:SetProperty("CellSingleLine",h,1,0/*exCaptionWordWrap*/) h := oItems:AddItem("This is bit of text that's displayed on the entire item, divider.") oItems:SetProperty("ItemDivider",h,0) oItems:SetProperty("ItemDividerLine",h,4/*DoubleDotLine*/) oItems:SetProperty("CellHAlignment",h,0,1/*CenterAlignment*/) oItems:SetProperty("ItemHeight",h,24) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
311 |
Can I remove the line being displayed by a divider item
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:MarkSearchColumn := .F. oComboBox:TreeColumnIndex := -1 oComboBox:Columns():Add("C1") oComboBox:Columns():Add("C2") oItems := oComboBox:Items() h := oItems:AddItem("Cell 1") oItems:SetProperty("CellCaption",h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.") oItems:SetProperty("CellSingleLine",h,1,0/*exCaptionWordWrap*/) h := oItems:AddItem("This is bit of text that's displayed on the entire item, divider.") oItems:SetProperty("ItemDivider",h,0) oItems:SetProperty("ItemDividerLine",h,0/*EmptyLine*/) oItems:SetProperty("CellHAlignment",h,0,1/*CenterAlignment*/) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
310 |
How can I display a divider item, merging all cells
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:MarkSearchColumn := .F. oComboBox:TreeColumnIndex := -1 oComboBox:Columns():Add("C1") oComboBox:Columns():Add("C2") oItems := oComboBox:Items() h := oItems:AddItem("Cell 1") oItems:SetProperty("CellCaption",h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.") oItems:SetProperty("CellSingleLine",h,1,0/*exCaptionWordWrap*/) h := oItems:AddItem("This is bit of text that's displayed on the entire item, divider.") oItems:SetProperty("ItemDivider",h,0) oItems:SetProperty("CellHAlignment",h,0,1/*CenterAlignment*/) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
309 |
How can I fix or lock items
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add("Default") oItems := oComboBox:Items() oItems:SetProperty("LockedItemCount",0/*exTop*/,1) oItems:SetProperty("CellCaption",oItems:LockedItem(0/*exTop*/,0),0,"This is a locked item, fixed to the top side of the control.") oItems:SetProperty("ItemBackColor",oItems:LockedItem(0/*exTop*/,0),AutomationTranslateColor( GraMakeRGBColor ( { 196,196,186 } ) , .F. )) oItems:SetProperty("LockedItemCount",2/*exBottom*/,2) oItems:SetProperty("CellCaption",oItems:LockedItem(2/*exBottom*/,0),0,"This is a locked item, fixed to the top side of the control.") oItems:SetProperty("ItemBackColor",oItems:LockedItem(2/*exBottom*/,0),AutomationTranslateColor( GraMakeRGBColor ( { 196,196,186 } ) , .F. )) oItems:SetProperty("CellCaption",oItems:LockedItem(2/*exBottom*/,1),0,"This is a locked item, fixed to the top side of the control.") oItems:SetProperty("ItemBackColor",oItems:LockedItem(2/*exBottom*/,1),AutomationTranslateColor( GraMakeRGBColor ( { 186,186,186 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
308 |
How can I fix or lock an item on the bottom side of the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add("Default") oItems := oComboBox:Items() oItems:SetProperty("LockedItemCount",2/*exBottom*/,1) oItems:SetProperty("CellCaption",oItems:LockedItem(2/*exBottom*/,0),0,"This is a locked item, fixed to the bottom side of the control.") h := oItems:AddItem("Root 1") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
307 |
How can I fix or lock an item on the top of the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add("Default") oItems := oComboBox:Items() oItems:SetProperty("LockedItemCount",0/*exTop*/,1) oItems:SetProperty("CellCaption",oItems:LockedItem(0/*exTop*/,0),0,"This is a locked item, fixed to the top side of the control.") h := oItems:AddItem("Root 1") oItems:InsertItem(h,,"Child 1") oItems:InsertItem(h,,"Child 2") oItems:SetProperty("ExpandItem",h,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
306 |
Is there any function to limit the height of the items when I display it using multiple lines
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems LOCAL h oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:ScrollBySingleLine := .T. oComboBox:Columns():Add("C1") oComboBox:Columns():Add("C2") oItems := oComboBox:Items() h := oItems:AddItem("Cell 1") oItems:SetProperty("CellCaption",h,1,"This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines.") oItems:SetProperty("CellSingleLine",h,1,0/*exCaptionWordWrap*/) oItems:SetProperty("ItemMaxHeight",h,48) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
305 |
Why I cannot center my cells in the column
|
304 |
How can I align the cell to the left, center or to the right
|
303 |
How do I apply HTML format to a cell
|
302 |
How can I change the font for a cell
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oComboBox LOCAL oItems oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oComboBox := XbpActiveXControl():new( oForm:drawingArea ) oComboBox:CLSID := "Exontrol.ComboBox.1" /*{CF170E7A-4391-44BD-8D93-29F8D2801EF7}*/ oComboBox:create(,, {10,60},{610,370} ) oComboBox:Columns():Add("Default") oComboBox:Items():AddItem("std font") oItems := oComboBox:Items() oItems:SetProperty("CellCaptionFormat",oItems:AddItem("this <font tahoma;12>is a bit of text with</font> a different font"),0,1/*exHTML*/) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
301 |
How can I change the font for a cell
|